# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=zykeys
pkgver=0.1
pkgrel=4
groups=('blackarch' 'blackarch-wireless' 'blackarch-cracker')
pkgdesc='Demonstrates how default wireless settings are derived on some models of ZyXEL routers.'
arch=('x86_64' 'aarch64')
url='http://packetstormsecurity.com/files/119156/Zykeys-Wireless-Tool.html'
license=('custom:unknown')
depends=('openssl')
makedepends=('gcc')
source=("https://dl.packetstormsecurity.net/wireless/$pkgname.tar.gz")
sha512sums=('d44ce9dcce39e719e93881a7a4ee8ff3bfaa5a950965b3e11b1c8ed3055a0d938ccfafcb11f129fe1d3f3a41fb48ced527e1203d9a161c53268cb59feee6a2d9')

build() {
  cd $pkgname

  gcc "$pkgname.c" -o $pkgname -lcrypto
}

package() {
  cd $pkgname

  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.txt
}
